package com.chaochis.wind.user.service;

import com.chaochis.wind.common_exceptions.has_delete_exception.DataHasDeleteException;
import com.chaochis.wind.common_exceptions.not_active_exception.DataNotActiveException;
import com.chaochis.wind.common_exceptions.not_exist_exception.DataNotExistException;
import com.chaochis.wind.common_exceptions.not_exist_exception.UserNotExistException;
import com.chaochis.wind.common_exceptions.other_login_exceptions.password_exception.UserPasswordErrorException;
import com.chaochis.wind.user.vo.WindAccount;

public interface WindLoginService {

  /**
   * 执行登录功能
   * @param windAccount 要登录得账号
   * @return 返回登录后提供得token
   */
  String login(WindAccount windAccount) throws DataHasDeleteException, DataNotExistException, DataNotActiveException, UserPasswordErrorException;

  /**
   * 账户登出功能
   * @return 是否成功登出账号
   */
  Boolean logout();
}
